<?php
class FinanceController {
	public function add(){
		$data = HttpDaoManager::getFinanceDao()->getByTeacherId($_GET['teacherId']);
		$data['bankList'] = HttpDaoManager::getBankDao()->getList();
		return $data;
	}
	public function subAdd(){
		$data = $_POST;
		$data['teacher_id'] = $data['teacherId'];
		HttpServerManager::getFinanceServer()->add($data);
		ClassManager::getToos()->msgbox('修改成功','Teacher_lists.html');
	}
}
?>